import index from '@vue/views/index.vue' //主文件入口
var routes = [
  {
    path: '/',
    redirect: "/index",
    component: index,
    name: "home",
  },
  {
    path: '/index',
    component: index,
    name: "index",
  },
  {
    path: '/login',
    component: (resolve) => require(['./views/login.vue'], resolve),
    name: "login",
  },
  {
    path: '/game',
    component: (resolve) => require(['./views/game.vue'], resolve),
    name: "game",
  },
  {
    path: '/grid',
    component: (resolve) => require(['./views/grid.vue'], resolve),
    name: "grid",
  },
];
export default routes;
